package com.lh.biz.dto.in.product;

import java.util.HashMap;
import java.util.Map;

import com.lh.biz.dto.BaseQueryInDto;

/**
 * @author liuhui
 * @version 1.0
 * @date 2013-5-23 下午8:53:15
 */
public class SearchInDto extends BaseQueryInDto {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8495599710429332830L;
	
	private Long categoryId;
	private String keywords;
	private String properties;
	private Double minPrice;
	private Double maxPrice;
	
	private static final Map<String, String> sortFields= new HashMap<String, String>();
	static{
		sortFields.put("s1", "salesNum");
		sortFields.put("s2", "price");
		sortFields.put("s3", "evaluationScore");
	}
	public Long getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public Double getMinPrice() {
		return minPrice;
	}
	public void setMinPrice(Double minPrice) {
		this.minPrice = minPrice;
	}
	public Double getMaxPrice() {
		return maxPrice;
	}
	public void setMaxPrice(Double maxPrice) {
		this.maxPrice = maxPrice;
	}
	
	public String getSortField(){
		return sortFields.get(getSort());
	}
	public String getProperties() {
		return properties;
	}
	public void setProperties(String properties) {
		this.properties = properties;
	}
	

}
